package com.fengmi.search.controller;

import com.fengmi.comm.ResultVO;
import com.fengmi.comm.SearchDTO;
import com.fengmi.search.service.ISearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("search")
public class SearchController {
    @Autowired
    ISearchService searchService;
    @RequestMapping("init")
    public ResultVO init(){
       return    searchService.init();
    }

     @RequestMapping("searchGood")
    public ResultVO searchGood(@RequestBody  SearchDTO searchDTO) {
        return searchService.searchGood(searchDTO);
    }


}
